package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "shop_cart_d")
public class CartD implements Serializable {

	private static final long serialVersionUID = -3372401546900123964L;
	@Id
	@Column(name = "client_id_bigint", columnDefinition = "bigint(20) comment '客户ID'")
	private Long clientID;
	@Column(name = "spec_id_bigint", columnDefinition = "bigint(20)")
	private Long specId;
	@Column(name = "pro_id_bigint", columnDefinition = "bigint(20)")
	private Long proId;
	@Column(name = "quantity_int", columnDefinition = "int(11) comment '产品数量'")
	private Integer quantity;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
}
